package ts;

public class Variable {
	public String name;
	public String type;
	public int offset;
	public boolean esAtributo; //true si es atributo, false si es parámetro
	//Object value;
	public String etiqueta; //para reemplazar con el offset
	
	public Variable(String n,String t,boolean es) {
		//System.out.println("Variable "+n+" "+t+" "+es);
		name = n; type = t; esAtributo = es;
	}
	/*
	public Variable(String n,String t) {
		name = n; type = t;
	}*/
	
	public Variable(String n) {
		name = n;
	}
	
	void print() {
		System.out.println("*VARIABLE*");
		System.out.println("name: "+name+" type: "+type+" offset: "+offset);
	}
}
